package com.facebook.drawee.backends.pipeline;

import android.content.Context;
import com.facebook.drawee.view.SimpleDraweeView;
import com.facebook.imagepipeline.core.ImagePipeline;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import com.facebook.imagepipeline.core.ImagePipelineFactory;

public class Fresco
{
  private static PipelineDraweeControllerBuilderSupplier sDraweeControllerBuilderSupplier;

  public static PipelineDraweeControllerBuilderSupplier getDraweeControllerBuilderSupplier()
  {
    return sDraweeControllerBuilderSupplier;
  }

  public static ImagePipeline getImagePipeline()
  {
    return getImagePipelineFactory().getImagePipeline();
  }

  public static ImagePipelineFactory getImagePipelineFactory()
  {
    return ImagePipelineFactory.getInstance();
  }

  public static void initialize(Context paramContext)
  {
    ImagePipelineFactory.initialize(paramContext);
    initializeDrawee(paramContext);
  }

  public static void initialize(Context paramContext, ImagePipelineConfig paramImagePipelineConfig)
  {
    ImagePipelineFactory.initialize(paramImagePipelineConfig);
    initializeDrawee(paramContext);
  }

  private static void initializeDrawee(Context paramContext)
  {
    sDraweeControllerBuilderSupplier = new PipelineDraweeControllerBuilderSupplier(paramContext);
    SimpleDraweeView.initialize(sDraweeControllerBuilderSupplier);
  }

  public static PipelineDraweeControllerBuilder newDraweeControllerBuilder()
  {
    return sDraweeControllerBuilderSupplier.get();
  }

  public static void shutDown()
  {
    sDraweeControllerBuilderSupplier = null;
    SimpleDraweeView.shutDown();
    ImagePipelineFactory.shutDown();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.facebook.drawee.backends.pipeline.Fresco
 * JD-Core Version:    0.6.2
 */